projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78109ac
)
libxc: use PRIx64 to print out pfn
author
Wei Liu
<wei.liu2@citrix.com>
Fri, 1 Apr 2016 14:45:06 +0000
(15:45 +0100)
committer
Ian Jackson
<Ian.Jackson@eu.citrix.com>
Fri, 1 Apr 2016 14:54:24 +0000
(15:54 +0100)
Pfn is always 64 bit long. Use PRIx64 to avoid truncation.
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_sr_save.c
patch
|
blob
|
history
diff --git
a/tools/libxc/xc_sr_save.c
b/tools/libxc/xc_sr_save.c
index b861c7d7233b8d95e37e7c4c298f694d3121885a..291fe9f20784bb0cb39b4062bd7d6ed98ec1d468 100644
(file)
--- a/
tools/libxc/xc_sr_save.c
+++ b/
tools/libxc/xc_sr_save.c
@@
-555,7
+555,7
@@
static int colo_merge_secondary_dirty_bitmap(struct xc_sr_context *ctx)
pfn = pfns[i];
if (pfn > ctx->save.p2m_size)
{
- PERROR("Invalid pfn 0x%" PRI
pfn "", (unsigned long)pfn
);
+ PERROR("Invalid pfn 0x%" PRI
x64, pfn
);
rc = -1;
goto err;
}